Add macros for domain specific barriers.
authorSoby Mathew <[email protected]>
Tue, 30 Dec 2014 16:11:42 +0000 (16:11 +0000)
committerDan Handley <[email protected]>
Thu, 22 Jan 2015 10:57:43 +0000 (10:57 +0000)
This patch adds helper macros for barrier operations that specify
the type of barrier (dmb, dsb) and the shareability domain (system,
inner-shareable) it affects.

Change-Id: I4bf95103e79da212c4fbdbc13d91ad8ac385d9f5

include/lib/aarch64/arch_helpers.h

index 7320a0af43b7268c3f442eaa56b003f44ba5e01f..7d24a5378351d60b8fe0f5bbe91e4d7de5964585 100644 (file)
@@ -175,6 +175,9 @@ DEFINE_SYSOP_FUNC(wfi)
 DEFINE_SYSOP_FUNC(wfe)
 DEFINE_SYSOP_FUNC(sev)
 DEFINE_SYSOP_TYPE_FUNC(dsb, sy)
+DEFINE_SYSOP_TYPE_FUNC(dmb, sy)
+DEFINE_SYSOP_TYPE_FUNC(dsb, ish)
+DEFINE_SYSOP_TYPE_FUNC(dmb, ish)
 DEFINE_SYSOP_FUNC(isb)
 
 uint32_t get_afflvl_shift(uint32_t);